package com.xq.shop.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author gaoxiaojin
 */
@Data
public class EditUserDto {


    @NotNull(message = "id不能为空")
    private Integer id;

    @NotNull(message = "金额权限不能为空")
    private Integer amountPower;

    /**
     * 账号
     */
    @NotBlank(message = "账号不能为空")
    private String username;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    private String password;

    private String province;

    private String city;

    private String county;

    private String phoneNumber;

    /**
     * 姓名
     */
    @NotBlank(message = "姓名不能为空")
    private String name;

    private Integer gender;

    @NotNull(message = "状态不能为空")
    private Integer mark;

    private List<Integer> menuList;
}
